package mastermind.controller;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.JDialog;

/** Disposes of a given JDialog */
public class CancelListener implements ActionListener {
	private JDialog jd;

	public CancelListener(JDialog jd) {
		this.jd = jd;
	}

	public void actionPerformed(ActionEvent e) {
		jd.dispose();
	}

}
